Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • Communications over Wi-Fi

    7
    0 Votes
    7 Posts
    5k Views
    D
    changsheng230, socket is always socket and it doesn't matter what os/arch sits on the other side. What do you mean by "socket programming which iOS/Android supported"?
  • [Solved] How to reflect an image at a label?

    5
    0 Votes
    5 Posts
    6k Views
    L
    Cool thanks, it works!
  • OpenGL painter->fillRect Question

    3
    0 Votes
    3 Posts
    3k Views
    Z
    You are trying to mix OpenGL rendering with QPainter painting and you are also trying to paint on the widget outside of the paint event. If you want to ue QPainter in addition to OpenGL - ie not using OpenGL to draw all of yoru scene then I suggest you have a read of the the "OpenGL overpainting example":http://doc.qt.nokia.com/latest/opengl-overpainting.html.
  • [SOLVED] QListView - To select a disabled item

    4
    0 Votes
    4 Posts
    4k Views
    A
    Ok, I have just fixed the issue I mentioned above. Clearly still learning about (powerful) delegates... ( https://github.com/opencor/opencor/commit/5334d6b3c6f150643d1ede14b3471bae41044e03 )
  • [solved]calling a dialog in another dialog

    25
    0 Votes
    25 Posts
    15k Views
    R
    ok.sure.
  • [Solved] Qt kills unconditionally??

    9
    0 Votes
    9 Posts
    3k Views
    T
    thank you all my problem is solved
  • [QtNetwork] Reading and writing data

    7
    0 Votes
    7 Posts
    6k Views
    B
    Thanks for a very long and nice explanation. I have to admit that this forum is probably the best forum I know :) My friend's given me some links about security and I hope they'd answer my question how I can protect from potential attacks. Topic can be closed. Thx again!
  • Problem while running Box 2d

    17
    0 Votes
    17 Posts
    6k Views
    K
    i had made a change and copy my box2d folder in my working folder., SOURCES += main.cpp INCLUDEPATH += $$PWD/Box2D_v2.0.1/Box2D/Include LIBPATH += $$PWD/Box2D_v2.0.1/Box2D/Source/Gen/float LIBS += -lbox2d but the problem still occures..
  • [Solved] Display qDebug messages to a textbrowser

    2
    0 Votes
    2 Posts
    5k Views
    L
    There is an example of that on the wiki: "Browser for QDebug output":http://developer.qt.nokia.com/wiki/Browser_for_QDebug_output
  • Anyone know what these tree-like widgets are?

    7
    0 Votes
    7 Posts
    3k Views
    A
    Yeah, personally, I used (and extended) YAPE. Worked nicely, I thought.
  • [solved] QDialog closing

    7
    0 Votes
    7 Posts
    36k Views
    P
    thanks a lot everybody. I've decided to follow Maxim advice. close event is also raised when the user closes the window with the X or via the window manager, and in this case I don't want to save anything. bye bye Paolo
  • How do i make my text in QStandardItem to link to open default browser?

    2
    0 Votes
    2 Posts
    2k Views
    D
    One of the possible solutions is to handle the click event properly and use the QDesktopServices::openUrl() with the text from your item.
  • Editing items of a QList

    4
    0 Votes
    4 Posts
    13k Views
    P
    thank you to both responses!!!
  • [SOLVED] Load an html file from a Qt Resource file

    9
    0 Votes
    9 Posts
    12k Views
    S
    [quote author="peppe" date="1309831855"]Not only the qrc scheme is (usually) not associated with any application, but remember that resources are compiled inside your executable. How is a 3rd party program supposed to access them? A workaround could be copying the file from the resource to a temporary file/directory and then use QUrl::fromLocalFile + QDesktopServices::openUrl.[/quote] Finally I followed a similar workaround, and solved the issue! :-)
  • Simple parent and child window question

    7
    0 Votes
    7 Posts
    21k Views
    D
    Thanks very much for all your help, you guys rock. I wish the BlackBerry developer forums were this good!!
  • How to make a tabbar last one ???

    9
    0 Votes
    9 Posts
    3k Views
    M
    In my project i have some model on the basic of witch i do reinit a tabBar (delete all tabs, and create them again), then if my model talk me what in model no one item to visualize, i create an "empty" tab (like in browser), and at end, i create "Add" tab. And i have connect with TabBar and my class, and when user push at some of tabs, i get a signal, then in connected with this signal slot's i analyze if this tab bar is "Add", then create a new item at model.
  • Bit Manipulation

    3
    0 Votes
    3 Posts
    3k Views
    K
    also as a sidenote, QBitArray is probably enough efficient in terms of memory and operation wise. (I wish there were abstraction layers though for the set test and clear methods so I could I add my platform specific code for those :) )
  • QSqlRelationalTableModel && removeRow() [Solved]

    14
    0 Votes
    14 Posts
    7k Views
    L
    I found the cause. The table vs_permessi: @ CREATE TABLE vs_permessi ( id_gruppo int(11) NOT NULL, id_applicazione int(11) NOT NULL, PRIMARY KEY (id_gruppo,id_applicazione), KEY id_applicazione (id_applicazione) ) @ has the column id_applicazione in its primary key and this seems the problem. If I modify the table this way: @ CREATE TABLE vs_permessi ( id_gruppo int(11) NOT NULL, id_applicazione int(11) NOT NULL, PRIMARY KEY (id_gruppo) ) @ the problem disappears... Very thanks for you time and your help...
  • 0 Votes
    4 Posts
    4k Views
    G
    bq. How are you adding the items to the QListWidget? just addItem() bq. Creating one delegate will be less code than setting the validator each time you need it… what?? create proper IetmDelegate subclass (with proper methods and signals) and create QLineEdit subclass - this is shorter than just get one pointer (this should be 1-3 lines of code) and then call setValidator() ???
  • Problems with out of source build of Qt 4.7.3 on Windows platform

    5
    0 Votes
    5 Posts
    4k Views
    D
    [quote author="ludde" date="1309947011"]Just to understand exactly what you're doing, where is the Qt source distribution? In D:\Qt\2011.473-vc\qt? And it's a source distribution that has just been unpacked, nothing else? [/quote] This question pointed me to the right direction. I did not use a clean source distribution but rather an existing binary one. Unfortunately after a successful configuration and several hours of building my name process terminate with an internal linker error. I'm using currently still using the Microsoft MSVC 2003.NET compiler and there configure with the "-platform win32-msvc2003" switch. Based on my documentation this should still be supported and I was wondering if others have been successful? Thank you for all your input