Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.0k Posts
  • [Solved] How to fill the widget's background like this,.Please help

    6
    0 Votes
    6 Posts
    6k Views
    L
    Sorry, my bad
  • [Solved] Undefined symbols: QSvgRenderer::render(QPainter*)

    4
    0 Votes
    4 Posts
    4k Views
    ?
    good to hear it :)
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Static QFileDialog methods fail on Windows 7 Starter edition

    2
    0 Votes
    2 Posts
    3k Views
    F
    im not sure, but wasnt there a limitation of 4 applications on windows starter? perhaps it thinks the filedialog is a Application by itself and stops it? As said, only a suggestion I'm not sure if its really the problem
  • QWebkit: How to tell when netscape plugin is not available?

    17
    0 Votes
    17 Posts
    10k Views
    T
    ShapeShifter: Nobody minds you asking basic C++ questions. I (and others) even took the time to answer them, even though those questions are covered by any introduction text to C++, some of which were even recommended here. We provided way more interaction here as you had in the other forum thread you mentioned (which did provide an answer which I found genuinely helpful by the way). I am new to this whole forum thing (which I am doing almost exclusively in my spare time, I am not paid to answer questions here!) and this forum is new, too. So I am seriously interested in understanding your expectations.
  • [Solved] update checkable QPushButton without toggle event

    5
    0 Votes
    5 Posts
    8k Views
    H
    found another (cleaner) option: to distinguish between clicked and toggled, former does not react to setChecked()
  • Writing QByteArray with QTcpSocket: null terminated?

    3
    0 Votes
    3 Posts
    5k Views
    Q
    Ok, that's the same then, thanks.
  • _CRTDBG_MAP_ALLOC macro and Qt

    2
    0 Votes
    2 Posts
    7k Views
    S
    Found the answer to my problems, what what?? "http://www.qtcentre.org/wiki/index.php?title=Memory_Leak_Detection_in_VS":http://www.qtcentre.org/wiki/index.php?title=Memory_Leak_Detection_in_VS
  • Delete Menu Bar

    7
    0 Votes
    7 Posts
    7k Views
    ?
    Great! Not sure if there is a bug already for this at "http://bugreports.qt.nokia.com":http://bugreports.qt.nokia.com, probably you could add one also another solution, you can check if "this":http://developer.qt.nokia.com/forums/viewthread/292/ works
  • Playing with Style Sheets

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • CSS for a QComboBox

    6
    0 Votes
    6 Posts
    6k Views
    ?
    hi stuk, this stylesheet, only modifies the height of the combobox itself, the individual item height in the popup is still defined by the font size. Not sure if we can set some margin for the font itself have to chk that :)
  • Building UI with QGraphics

    6
    0 Votes
    6 Posts
    5k Views
    D
    Thanks for all of your answers, much appreciated. I've tried to look at qml and it seems like it can accomplish what I want, and it is relatively simple as well.
  • Sound recording with Qt

    3
    0 Votes
    3 Posts
    8k Views
    ?
    Hi Chkon, slight correction, we use Qt and not QT :)
  • QSqlTableModel submitAll problem

    4
    0 Votes
    4 Posts
    4k Views
    X
    Hey, I take back my word. Except for QSqlTableModel. The rest of class in sql module work like a charm.
  • Warning: duplicate script for target

    3
    0 Votes
    3 Posts
    4k Views
    L
    Thanks, Denis. What I'm trying to build now (this is actually a static lib) is already a part of SUBDIRS type .pro file. I thought about making the lib's top .pro file with SUBDIRS template, and putting a separate .pro file in all nested directories with OBJECTS_DIR overridden for each directory, so that object files do not conflict. I will keep this solution in mind. To my point view, the best solution would be making qmake create the same directory structure under specified OBJECTS_DIR. I mean, let say we have @OBJECTS_DIR = .obj SOURCES = Type1/.cpp Type2/.cpp@ and it will be just great, if qmake creates .obj, .obj/Type1, .obj/Type2 directories and puts .o files according to their location. Is this possible?
  • Disable JavaScript execution in QML

    3
    0 Votes
    3 Posts
    4k Views
    I
    Perhaps we have some GUI element which we draw with QML help. Suppose it has edit fields for private user data. If there is no JavaScript QML is still useful because every user can write its own QML and have some pretty GUI element. But if JavaScript is turned on then some malicious man can integrate information stealing and many other disastrous things. It can even have privilege elevation at the worst case! No one can do the same thing with already built C++ code with an acceptable cost.
  • "Host not found" using QtSoap

    2
    0 Votes
    2 Posts
    4k Views
    D
    I think that setHost takes a hostname, not a URL. Try http.setHost("localhost", 54254); Hmm, QtSoap is still using QHttp? That surprises me. Oh well, another reason to switch to KDSoap once I release it (in a few weeks) :-)
  • Determine OS

    8
    0 Votes
    8 Posts
    18k Views
    T
    iunknwn: Of course this relies on macros under the hood:-) Runtime detection is usually not what you want in the first place: Usually you need some code to do something platform specific and that code will not compile anywhere but on that one platform. You need macros for that or you will get into trouble everywhere that platform specific code does not work. Runtime detection is basically only useful if you need to know the exact version of the OS (e.g. Windows 7) you are running on and not just the generic type of OS (e.g Windows).
  • QSqlTableModel::rowCount && Windows problem

    6
    0 Votes
    6 Posts
    8k Views
    X
    canFetchMore() will make a round trip to server as well. And it might get uglier than "select count(*)" since the hint indicate you should fetch more records to get accurate record count. More round trip for huge database of 100,000,000 records. What database are you using? Mysql ISAAM will provide instantaneous response on "select count(*)" as it is cached. Mysql InnoDB and postgresql count the record everytime, thus "select count" is a little slow (Not really that noticeable). Bottom line is, round trip to server is unavoidable. Franzk's addition by caching, looks marvelous. I will go with that.
  • "About Qt" icon

    5
    0 Votes
    5 Posts
    4k Views
    S
    Thank you for the help