Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QTabBar: padding size inside tabs

    5
    0 Votes
    5 Posts
    7k Views
    N
    It would only help if the left button (QLabel in this case) was placed in the top left corner of tab (0,0). But this is not the case in Gnome (padding from screenshot), so when I set fixedWidth of QLabel to 35 and tabSizeHint width to 35 too, QLabel just don't fit in tab.
  • Way to know when QGraphicsView is finished rendering?

    6
    0 Votes
    6 Posts
    3k Views
    R
    [quote author="Chris H" date="1323784331"]Looking at the code for the render() function in 4.7, it doesn't look like there are any signals being emitted during the process. Maybe there is something in the objects themselves?[/quote] Right - nor is the 'render()' function virtual, so you can't override it. [quote author="Andre" date="1323787413"]You are not downloading the images from the drawing code, are you?[/quote] Nope.
  • Problem in receiving data on QTcpSocket

    4
    0 Votes
    4 Posts
    4k Views
    S
    That should be the problem! Qt Signals & Slots rely's on the event-loop, When you initialize a QApplication (Gui) or QCoreApplication (non-Gui), the event-loop starts after you call exec()! Now the problem is that a QApplication or QCoreApplication needs to be created in the main thread! and that thread is started before your library is loaded... good thing is there are some options! :) You can can try to call QApplication::processEvents() from your main applications event loop You can create a second thread and start QApplication::exec() from there
  • How to bind a event handler to qtCheckbox

    7
    0 Votes
    7 Posts
    12k Views
    K
    Hi, i am new to qt. I have create a same function as andre but i cant find a way the get the value of the checkbox that was clicked. @QSignalMapper* mapper = new QSignalMapper(this); QMultiMap<QString, QString>::iterator a = examination.find("test_id"); while (a != examination.end() && a.key() == "test_id") { QCheckBox* cb = new QCheckBox(a.value(),this); _layout2->addWidget(cb); xml.readNextStartElement(); ++a; connect(cb, SIGNAL( stateChanged(int) ), mapper, SLOT(map())); mapper->setMapping(cb, i); } _layout2->addWidget(kataxwrisi); connect(kataxwrisi,SIGNAL(clicked()),this,SLOT(ReadXMLFile())); connect(mapper, SIGNAL(mapped(QString)), this, SLOT(checkboxClicked(QString))); } void QXSRExample::checkboxClicked(QString checkbox){ }@ for example if the first checkbox has the value "A" i want to know.. what can i do?
  • GraphicsView: Update region issue

    4
    0 Votes
    4 Posts
    4k Views
    A
    Well, I have tried various things, and found out the following: The shape of the QGraphicsPixmapItem is ok. The problem lies elsewhere: For some reason, multiple small update regions are merged to one large update rectangle. Even if I explicitly provide two update rectangles, a single larger rectangle is created from it. Does anyone have an idea how I influence that behaviour?
  • Call a function every time a variable is changed

    5
    0 Votes
    5 Posts
    6k Views
    S
    Oh, haha one was using QML, the other Qt C++, If you want to go the C++ route there is this page "Qt Bindings":http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html Which may help you... I believe they use signals inside the C++ code as well as using the Q_PROPERTY macro
  • 0 Votes
    2 Posts
    2k Views
    S
    can you put your code somewhere to download?
  • 64bit database(Postgresql) and 32 bit application

    3
    0 Votes
    3 Posts
    4k Views
    H
    Yes you right. I compiled plugin to Postgres with 32 bit libraries and this works fine with Postgresql 64bit on Windows 7 64bit.
  • [SOLVED] QNetworkAccessManager get

    9
    0 Votes
    9 Posts
    4k Views
    T
    Yes To much java and vb and no c++ expert. well I try to learn and this forum is very helpful. Thanks
  • Error while loading QtNetwork4.dll

    7
    0 Votes
    7 Posts
    8k Views
    A
    Yes you are right, because of PATH environmental variable would have been set in your system , so that it has taken the reference from there, for me it was not set. I tried to put the QtNetwork4.dll in C:\Windows\System32 folder and then it Workz!!! Thanks a lot for suggestions.
  • Qt and visual Studio extension

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Any tutorial for using .ui file

    3
    0 Votes
    3 Posts
    2k Views
    EddyE
    The "Qt Creator manual ":http://doc.qt.nokia.com/qtcreator-2.3/creator-writing-program.htmlhas some nice tutorials on this. It will give you a very good starting point where an ui file will be generated which you can alter afterwards. The Qt Designer is an essential part of Qt Creator. More information about ui design is in the "manual":http://doc.qt.nokia.com/4.8-snapshot/designer-manual.html. If you have more specific questions, feel free to ask.
  • How to check if an item exist in a model?

    11
    0 Votes
    11 Posts
    7k Views
    F
    Thanks for you all. I try..
  • Low Speed QTCPSocket on Win7

    13
    0 Votes
    13 Posts
    7k Views
    F
    [quote author="Mohsen" date="1320060819"]when using "localhost" windows sends a DNS request to domain suffix search list to discover proxy servers via Auto Discovery Protocol. [/quote] This problem seems to be related on how Microsoft handles IPv4 and IPv6, If I get it right, this strange behavior is implemented in order to ensure that if you disable IPv4 and do a DNS query for another IPv4 address you don't get such query going thru the loopback interface (that is tied to an IPv4 address: 127.0.0.1). Beside this, I consider doing a DNS lookup for localhost a stupid thing, and a sure way for an attack to come. Any other comments could sound a little rude...
  • Doubt getting window size

    4
    0 Votes
    4 Posts
    2k Views
    T
    Hi, take a look at "this thread":http://developer.qt.nokia.com/forums/viewthread/12191 and "this one":http://developer.qt.nokia.com/forums/viewthread/4871
  • Tutorial for Qt designer

    2
    0 Votes
    2 Posts
    2k Views
    F
    "This":http://doc.qt.nokia.com/2.3/designer/part1index.html is quite old. "This":http://doc.qt.nokia.com/stable/designer-manual.html is the latest one. Search also on youtube.
  • Problem getting with setGeometry function?

    6
    0 Votes
    6 Posts
    3k Views
    A
    You can put a QMdiArea on a QMainWindow as it's central widget.
  • [SOLVED]Weird regex behavior...

    4
    0 Votes
    4 Posts
    2k Views
    W
    Ahh... Got it. Thanks.
  • Model value persist in QCombobox after loosing focus

    6
    0 Votes
    6 Posts
    3k Views
    J
    Well, I already tried to change the "No" to "No " in the QStringList. Problem is, the mapper wont work on that particular field. Thanks anyway, for now I did make a table containing only a "Yes" and a "No" it is an additional count to the number of tables but it does work perfectly. ;D
  • Change form style!

    4
    0 Votes
    4 Posts
    3k Views
    A
    oh.i don't know it(for mac style) thanks about reference