Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14756

Value of QString in QVariant not displayed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 4.3.0-beta1
    • Qt Creator 3.5.0-rc1
    • Debugger
    • Windows 7 64 bit
      Qt 5.5.0
      MSVC2013 32 bit
      cdb 6.12

      1. Let cdb stop at a breakpoint behind this code:
        QVariant var;
        var.setValue(QString("Hello 10"));
        
      2. Look at the value displayed for var in Locals and Expressions view:
        		
        	Locals		
        		var	(QString) 	QVariant
        			d	struct QVariant::Private	QVariant::Private
        				data	union QVariant::Private::Data	union QVariant::Private::Data
        					c	96 '`'	char
        					uc	96 '`'	unsigned char
        					s	32608	short
        					sc	96 '`'	char
        					us	32608	unsigned short
        					i	9469792	int
        					u	9469792	unsigned int
        					l	9469792	long
        					ul	9469792	unsigned long
        					b	true	bool
        					d	5.8733258289605015e-306	double
        					f	1.327000499e-038	float
        					real	5.8733258289605015e-306	double
        					ll	40672446949392224	int64
        					ull	40672446949392224	unsigned int64
        					o	0x907f60	QObject *
        					ptr	0x907f60	void *
        					shared	0x907f60	QVariant::PrivateShared *
        				type	10	unsigned int
        				is_shared	0	unsigned int
        				is_null	0	unsigned int
        	Inspector		
        	Expressions		
        	Return Value		
        	Tooltip		
        

        The string "Hello 10" can't be seen anywhere.

      Creator should show the string. When compiling with MinGW and using gdb, this works correctly.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes