Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • A problem about Receiving integer arguments

    5
    0 Votes
    5 Posts
    2k Views
    M
    @uranusjr thanks a lot ... it works with me and thank you everybody :)
  • Timer stop from slot

    7
    0 Votes
    7 Posts
    15k Views
    A
    oh, right! that was it ^^ thank you guys!
  • What is the better option - ui builder or hand (code) made ui?

    3
    0 Votes
    3 Posts
    2k Views
    A
    A matter of taste indeed. I prefer to use Designer for the parts that I can, and that is usually for most of what I need. I find that it is easier to maintain my ui's that way. However, there is nothing wrong with either aproach.
  • Issue using QDir/QDirIterator

    2
    0 Votes
    2 Posts
    2k Views
    L
    bq. The QDirIterator constructor takes a QDir or a directory as argument. After construction, the iterator is located before the first directory entry. Your iterator is placed on an invalid entry. You will have to call QDirIterator::next() at least once to place it on the first valid entry. @ QDirIterator it("/etc", QDirIterator::Subdirectories); while (it.hasNext()) { qDebug() << it.next(); // /etc/. // /etc/.. // /etc/X11 // /etc/X11/fs // ... } @
  • Window Title not showing name of file [Solved]

    7
    0 Votes
    7 Posts
    6k Views
    R
    Thanks for the replies, it was due to a custom window title, I took that out, and put [code] Editor.setApplicationName("Text Editor"); [/code] Text Editor doesn't space in the Title Bar, can't figure out a workaround, but it's okay, now it's working, =).. And put Solved after the subject line, =). Am not sure how I would have reffered to my custom window title in codes, using it, but that's okay too.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] using the prefix in a resource file

    14
    0 Votes
    14 Posts
    9k Views
    S
    Resolved mine also. thanks again. Can there be a small an example put in the list also. Would help lot as most of us spend loads of time searching it.
  • Open external file with parameter

    4
    0 Votes
    4 Posts
    7k Views
    P
    Hi, Thanks. This is the solution. Ty.
  • Problem with Japanese encoding/display

    20
    0 Votes
    20 Posts
    11k Views
    B
    OK. I tried that, but it didn't help. Here's the frustrating situation now. I want to use the same database with two different interfaces. Right now, the web interface is in UTF-8. I can input, retrieve and display Japanese charcters this way, but they seem to be stored as nonsense-looking characters. The Qt interface that I'm working on can input, retrieve and display Japanese characters, and they seem to be stored as Japanese characters too, rather than as nonsense-style stuff. Unfortunately, if I use the Qt interface to retrieve data that was inputted with the web interface, it displays as nonsense. If I use the web interface to retrieve data that was stored with the Qt interface, it displays as question marks. The Qt data at least looks correct in the database (viewed with phpMyAdmin). I thought maybe if I could convert all the data to be like that, it would be good, but firstly, I don't know how to do that, and secondly, as I said, when I try to display that data in a browser, it comes out as question marks, so... Any ideas??? [frustrated or confused smilie goes here]
  • Get text from table cell

    9
    0 Votes
    9 Posts
    16k Views
    A
    I am not saying that you can not use it. You proved that you can. However, I think that the fact that QTableWidget has an accessible model() method is actually an oversight. It exposes an implementation detail of the class. It might have been better if the widget versions of the item views would have used encapsulation instead of inheritance. Furthermore, in the general case, I am of the opinion that you should not use the QAIM API for other purposes than to provide an interface for views and delegates (and to create classes like QDataWidgetMapper). The API is not designed for that, and you should use application specific API to interact with the data store object that is underlying the model. The QAIM is here only an adaptor class between the data store and the Qt view classes to visualize data from that store. In this case, the QTableWidget is the class that offers the API to manipulate the data, so it plays the role of both the data store and the view, and the actual model used is obscured from view. Following my reasoning, you should use the API of the data store to manipulate the data, that is, the QTableWidget and QTableWidgetItem API.
  • 0 Votes
    2 Posts
    2k Views
    A
    Seems that you have an additional (empty) item at the end of your list. The view does not insert this for you.
  • QMap/QHash: not remove and not reinsert item.

    4
    0 Votes
    4 Posts
    3k Views
    G
    Congrats - and enjoy coding with Qt :-)
  • Unregistered timer problem

    14
    0 Votes
    14 Posts
    6k Views
    P
    now only i saw same error thread in qtforum also in that one i found it is the problem in 4.7.3...it will be resolved in 4.8 when released...
  • [SOLVED] QProcess hell

    4
    0 Votes
    4 Posts
    6k Views
    D
    Thank you very much Lukas it worked just fine. @Andre: I did search and those are the first lines from my Qt documentation: bq. Registers the type name typeName for the type T. Returns the internal ID used by QMetaType. Any class or struct that has a public default constructor, a public copy constructor and a public destructor can be registered. So I don't see how, based on that, I can guess that it allows me to register an enum from another class. But maybe it's just my understanding...
  • "VIEWS" on same window

    3
    0 Votes
    3 Posts
    2k Views
    G
    A QStateMachine seems overly sophisticated for this, in my opinione. An enum with three states (LoggedOff, LoggedIn, Paused) should do the trick too.
  • [Solved]QDateEdit - How to restrict user input ?

    5
    0 Votes
    5 Posts
    3k Views
    R
    Thank you Cyan and Lukas for the hints. Found a little dirty work around : Upon the datechanged signal, resetting the day!
  • Invalid glyphset parameter

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Update the table's ID column when you remove a row from a model.

    4
    0 Votes
    4 Posts
    3k Views
    E
    Ok, I wont modify it. I'm sorry I didn't knew that. Thanks!
  • 0 Votes
    4 Posts
    20k Views
    R
    Ok, after googling the error a lot, I found a nokia Developer forum that someone had the same problem, and it seems that somehow openSSL doesn't correctly support TLS 1.0, and he switched his server to use SSLv3 instead. "The nokia forums thread":http://www.developer.nokia.com/Community/Discussion/showthread.php?214549-sslErrors-not-called I enabled SSLv3 in my server and voila! it works, the problem is that, even though SSLv3 is still secure, there has to be a way to support TLS 1.0, but I guess having it working with SSLv3 for the moment buys me time to see how to make it work with the latest and greatest in web encryption. EDIT: I'm a fool, TLSv1 doesn't come by default, so on line 15 of my first post, instead of using just QSslConfiguration::defaultConfiguration(), I replaced it with: @ QSslConfiguration config = QSslConfiguration::defaultConfiguration(); config.setProtocol(QSsl::TlsV1); request.setSslConfiguration(config); @ Thanks all!
  • [SOLVED] Finding the corresponding action from Toolbar

    4
    0 Votes
    4 Posts
    3k Views
    M
    Thanks ludde..its working fine with QSignalMapper