Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • [SOLVED] How to initialize ui in the function?

    11
    0 Votes
    11 Posts
    8k Views
    M
    No problem! There aren't really many reasons to have functions outside your class for this sort of thing. So, keeping them in scope is easy in that sense! Please be sure and add a [Solved] to the beginning of the title of the thread if you feel like the problem is solved.
  • [SOLVED] QTcpServer max connection limit

    15
    0 Votes
    15 Posts
    11k Views
    G
    The original question was: [quote author="kalster" date="1312611841"]what is the maximum QTcpServer connection limit?[/quote] That basically boils down to the OS level and is more or less independent from the frameworks and/or patterns you put on top. The latter may help in speeding up the processing of the requests of course.
  • [Moved] Filter an image with an qRGB component.

    2
    0 Votes
    2 Posts
    2k Views
    D
    Moved to General and Desktop because it is Qt-related topic.
  • Dynamic Qt Translation?

    3
    0 Votes
    3 Posts
    2k Views
    M
    Hi Gerolf, I know the process but i have some other doubts, i will get back soon.
  • Segmentation Fault (Core Dumped)

    6
    0 Votes
    6 Posts
    6k Views
    V
    I am sorry I can't help bq. I ll do that., But might there be a chance of the VTK library built wrongly?? What might be the other possibilities why it failing? Look, I don't want to alarm you, but my colleagues experience setting vtk up is not good...
  • Licencing my App

    3
    0 Votes
    3 Posts
    2k Views
    kidproquoK
    Depending on the particulars of the open source licence encrypting parts of the binary could be in breach of the licence. Regardless of the technical aspects you could be heading for a world of problems with this approach.
  • Qpainter always print behind label

    4
    0 Votes
    4 Posts
    2k Views
    G
    Each widget (also a QLabel) has a background that is drawn onto the parent (e.g. your main window). You can reimplement each widgets paintEvent in a subclass and do your own painting there. If you overwrite the paintEvent of the main windwd, you draw behind each child, so behind the labels. If you want to change the labels, make a subclass of QLabel and use that instead of QLabel. Overwrite paintEvent in your QLabel subclass and draw there. If you want some main window image behind all labels, you could also make the labels transparent.
  • Script parser[solved]

    6
    0 Votes
    6 Posts
    2k Views
    D
    You are welcome, please add [solved] to your post title
  • [SOLVED]Want to expand QTextEdit ..

    3
    0 Votes
    3 Posts
    5k Views
    M
    Thanks Gerolf ...its working now..
  • [SOLVED] hello world to textEdit text

    13
    0 Votes
    13 Posts
    20k Views
    K
    thank you again Volker for your input. I will read everything at the link you gave me very carefully.
  • Dbus not working as expected on MacOSX

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Moved] Use of QSignalMapper

    3
    0 Votes
    3 Posts
    3k Views
    G
    One should be carful in this case. It is perfectly ok to connect a signal to another signal (instead of a slot). In this case once the first signal is fired, the second is fired too (see the example of "QObject::connect() ":http://doc.qt.nokia.com/4.7/qobject.html#connect). It is very important, though, to use one of the correct macros SIGNAL(...) or SLOT(...) to wrap the method. You cannot add as method declared as slot to the SIGNAL macro and vice versa. I think that's what you did, and - even worse - you have a method with the same name, but different arguments declared one time as a slot and one time as a signal. I would change this, as it leads to confusion in the future.
  • C++ signal connection to script function

    4
    0 Votes
    4 Posts
    2k Views
    A
    [quote author="2beers" date="1312706251"]Thanks alexisdm. That works. Maybe they should update their documentation.[/quote] Not really. Most of their examples are meant to be pasted into the main() function between QApplication app (argc, argv); and return app.exec ();. It's up to you to adapt them when you use them elsewhere.
  • [SOLVED] loading a variable from state.

    2
    0 Votes
    2 Posts
    1k Views
    K
    I solved it with the following code. I needed the .toInt() at the end of the code. @tt = settings.value("variable").toInt();@
  • QTextBrowser and HTML flag

    2
    0 Votes
    2 Posts
    2k Views
    A
    Maybe with that: "QTextBrowser::scrollToAnchor":http://doc.qt.nokia.com/latest/qtextedit.html#scrollToAnchor (with the anchor name without the '#').
  • Overwrite functions(methods) on script side

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [SOLVED] saving a variable to state

    13
    0 Votes
    13 Posts
    5k Views
    K
    [quote author="Gerolf" date="1312617901"]Ok, so your problem is to store a variable of type char which is used as byte (number) not as character. Here comes your problem: setValue gets a QVariant. QVariant has some implicit constructors which can create the QVariant from bool, int, QString, QChar, ... QChar can be constructed by a char, but it interprets the value as a character, and decimal 1 is not a valid printable character. That's why it does not work as expected.[/quote] I don't understand what you are saying because the code works when i use char tt=1; it seems that i had the code correct right from the beginning. I just got mixed up with the two ini files that were created. nevertheless, the code works great. thank you Gerolf for your help
  • QWebHistoryItem . lastVisited()

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QTreeView with a different drawing scheme

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Avoiding name mangling in Qt dll

    8
    0 Votes
    8 Posts
    6k Views
    L
    ... and you cannot use simple functions pointers to "call methods on objects":http://www.parashift.com/c++-faq-lite/pointers-to-members.html.