Hello, i recently made this same exact post over at another Qt based forum, but went 7 hours without a response. In my opinion this is far to long for what seems to be a simple question, so i decided to give this forum a shot instead. Dont get my wrong, im fine with a little wait, but 7 hours for this particular question is unacceptable in my eyes (especially since it was my first post).
Im gonna quote my old topic instead of re-writting it. Hopefully you guys will be of more help (this community certainly does give off a more professional aura).
Thanks!First of all, hello everyone . I just registered here! Im very excited to have other Qt lovers around to learn from (im still a bit new to Qt, so there's gonna be a lot of questions aha).
Anyways Is there anyway to get a QListWidgetItem's row value? I need its place in the List, but i dont want to do a pointless loop like:
Qt Code:
for(int i = 0, l = m_Formats->count(); i < l; i++) { if(m_Formats->item(i)->text() == selected->text()) { //i = selected's index pos! } }To copy to clipboard, switch view to plain text mode
if i dont have to. Is there a member function that i might've missed that does this?
Bookmarks